RWTH - Mindstorms NXT Toolbox

SpeedRegulation

Enables / disables the speed regulation mode of the current active motor

Contents

Syntax

SpeedRegulation(mode)

Description

SpeedRegulation(mode) enables or disabled the speed regulation mode of the current active motor which can be controlled by SendMotorSettings. The value mode can be equal to 'on' or 'off' which enables or disables the speed regulation. The speed regulation setting takes only affect with the next SendMotorSettings command.

The speed regulation provides the motor to rotate speed controlled. So rotations at low speeds (powers) can be achieved.

Note:

In case the motor was previously synced to another motor, both these synchronisation modes will be disabled by activating the speed regulation to one of the motors (as speed regulation and motor synchronisation are not possible both together at one time).

Example

   SetMotor(MOTOR_A);
   	SetPower(12);
   	SpeedRegulation('on');
   SendMotorSettings();

See also

SendMotorSettings, SetMotor, SetPower

Signature